﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Share;

public class ApiSetting
{
    /// <summary>
    /// 开放平台网关地址
    /// </summary>
    public string GatewayUri { get; set; } = string.Empty;
    public string AppId { get; set; } = string.Empty;

    /// <summary>
    /// 签名类型，支持RSA2 SM2(CA_SM)，一个appid只能使用其中一种
    /// </summary>
    public string SignType { get; set; } = string.Empty;

    /// <summary>
    /// 公钥
    /// </summary>
    public string PublicKey { get; set; } = string.Empty;

    /// <summary>
    /// 私钥
    /// </summary>
    public string PrivateKey { get; set; } = string.Empty;

    /// <summary>
    /// 签名类型 ：CA、CA-SM-ICBC 时需上送，从cer 证书中提取
    /// </summary>
    public string CA { get; set; } = string.Empty;

    /// <summary>
    /// 网关公钥，用来验证网关的返回
    /// </summary>
    public string GatewayPublicKey { get; set; } = string.Empty;
}